<template>
  <view style="height: 100%;background: #ffffff;padding: 20rpx">
    <u-parse :html="detail.content"></u-parse>
  </view>
</template>

<script>
export default {
  data() {
    return {
      detail: {}
    }
  },
  onLoad(option) {
    this.$api.policyList().then(res => {
      if (!res || !res.length) {
        return
      }
      this.detail = res[0] || {}
      // 设置标题
      uni.setNavigationBarTitle({
        title: this.detail.name
      })
    })
  },
  methods: {
  }
}
</script>

<style>
pages {
  height: 100%;
}
</style>
